<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv=content-type content="text/html; charset=UTF-8">
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<link rel="shortcut icon" href="favicon.ico" />
	<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/zuitu/index.css" type="text/css" media="screen" charset="utf-8" />
	<script src="/static/js/index.js" type="text/javascript"></script>
</head>
<body class="newbie">
<div id="doc">


<div id="hdw">
	<div id="hd">
		<div id="logo"><a href="/index.php" class="link"><img src="/static/css/i/logo.gif" /></a></div>

		<ul class="nav cf">
			<li><a href="#">今日团购</a></li>
		</ul>
		<?php if(Yii::app()->user->isGuest) {?>
		<div class="logins">
			<ul id="account">
				<li class="login"><a href="<?php echo $this->createUrl('user/login'); ?>">登录</a></li>
				<li class="signup"><a href="<?php echo $this->createUrl('user/register'); ?>">注册</a></li>
			</ul>
			<div class="line "></div>
		</div>
		<?php }else{ ?>
		<div class="logins">
			<ul id="account">
				<li class="username">欢迎您，<?php echo Yii::app()->user->name; ?>！</li>
				<li class="account"><a href="#/order/index.php" id="myaccount" class="account">我的TUAN</a></li>
				<li class="logout"><a href="<?php echo $this->createUrl('site/logout'); ?>">退出</a></li>
			</ul>
			<div class="line islogin"></div>
		</div>
		<ul id="myaccount-menu">
			<li><a href="/order/index.php">我的订单</a></li>
			<li><a href="/coupon/index.php">我的优惠券</a></li>
			<li><a href="/account/settings.php">帐户设置</a></li>
		</ul>
		<?php } ?>
	</div>
</div>

<div id="bdw" class="bdw">
	<div id="bd" class="cf">
		<?php echo $content; ?>
	</div>
</div>



<div id="ftw">
	<div id="ft">
		<p class="contact"><a href="/feedback/suggest.php">意见反馈</a></p>
		<div class="copyright">
		<p>&copy;<span>2010</span>&nbsp;<?php echo CHtml::encode(Yii::app()->name); ?>(zuitu.com)版权所有&nbsp;<a href="/about/terms.php">使用<?php echo CHtml::encode(Yii::app()->name); ?>前必读</a>&nbsp;<a href="http://www.miibeian.gov.cn/" target="_blank">ICP</a>&nbsp;Powered by <a href="http://www.yiiframework.com/" target="_blank">ZuiTu</a> software.</p>
		</div>
	</div>
</div>

</div>
</body>
</html>